package cz.data.domain.market.rpc;

import cz.data.common.annotation.DataInner;
import cz.data.domain.market.model.entity.DataApiEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "dataApiServiceFeign", value = "market-domain-api")
public interface DataApiServiceFeign {

    @DataInner
    @GetMapping("/inner/apis/{id}")
    DataApiEntity getDataApiById(@PathVariable("id") String id);

    @DataInner
    @GetMapping("/inner/apis/release/list")
    List<DataApiEntity> getReleaseDataApiList();
}
